//
// Created by xunx on 2018/12/9.
//

#ifndef GOWILD_MINESWEEPING_H
#define GOWILD_MINESWEEPING_H

#include "../Core/Gowild.h"

class Minesweeping {
public:
    Minesweeping();

    virtual ~Minesweeping();

    void GameStart();

private:

    void GameOver();

    void OpenBlank(int x, int y);

    void Load();

    void Generate();

    bool isArea(int x, int y);

    void InitNumbers();

    void Swap(int x1, int y1, int x2, int y2);

    bool Booms[20][20] = {false};
    bool Open[20][20] = {false};
    bool Flag[20][20] = {false};
    int Numbers[20][20] = {0};
    int BoomNumble;

    float inputtime;


};


#endif //GOWILD_MINESWEEPING_H
